﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PageViews.ascx.cs" Inherits="Pub_Module_PageViews" %>

<script language="javascript" type="text/javascript">
var Url='<%= ResolveClientUrl("~/")%>';
$(window).load(function() {                                                                     
                    GetAjaxPageViews()
                      
  });           
 
function GetAjaxPageViews()
{
        $.ajax({ 
                               type: "GET", 
                               url: Url+"Pub/Ajax/AjaxQuery.aspx?type=getpageviews", 
                               success: function(resp)
                               { 
                          
                                      $("#<%= divData.ClientID%>").html(resp);                                                  
                               } 
                        });        
}

function LoadingAjaxPageViews()         
{
    $(document).ready(function() {
        $('<div class="lof41div-loading"></div>')
           
        .ajaxStart(function() 
        {
            $(this).show();
        }).ajaxStop(function() 
        {
            $(this).hide();
        });
    });

}     
</script>

<div style="padding: 5px 0px 5px 0px">
    <asp:Panel ID="divData" runat="server" Style="text-align: center;">
        
    </asp:Panel>
</div>
